package day_240521.my_box;

public class Group<K, V> {
    V numberOfPerson;
    K groupNumber;

    public Group() {
    }

    public Group(K groupNumber, V numberOfPerson) {
        this.groupNumber = groupNumber;
        this.numberOfPerson = numberOfPerson;
    }

    public void setGroup(K groupNumber, V numberOfPerson) {
        this.groupNumber = groupNumber;
        this.numberOfPerson = numberOfPerson;
    }

    public V getGroup(K groupNumber) {
        return this.numberOfPerson;
    }
}

class Student {
    String name;

    public Student(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student" + "{name: " + name + "}";
    }
}



